//
//  UIButton + Extension.swift
//  微博
//
//  Created by 武莎莎 on 15/9/10.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit

extension UIButton {
    convenience init(imageName:String) {
        self.init()
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        setImage(UIImage(named: imageName + "__highlighted"), forState: UIControlState.Highlighted)
        sizeToFit()
    }
}
